//
//  CurrentUser.h
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"


#define kUserSessionKey_Mine    @"kUserSessionKey_Mine"

#define kDefaultUserInfoKey     @"kDefaultUserInfoKey"

#define kUserNameKey            @"kUserNameKey"


@interface CurrentUser : BaseModel

@property (nonatomic,copy) NSString *sessionKey;

+ (instancetype)mine;

+ (void)loginSuccess:(NSString *)sessionKey;

- (BOOL)hasLogged;

- (void)reset;

- (void)save;

+ (void)userLogoutSuccess:(SuccessBlock)success failure:(FailureBlock)failure;

@property (nonatomic, strong) UserInfoModel *userInfo;

+ (BOOL) setUserInfoWithDic:(NSDictionary *)userInfo;





@end
